package com.itfreer.cms.service.content;

import javax.ws.rs.Path;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.itfreer.cms.entity.content.DocumentEntity;
import com.itfreer.cms.service.content.DocumentService;
import com.itfreer.form.api.BaseRestService;
import com.itfreer.form.api.BaseService;

/**
 * 定义文档管理服务
 */
@Component
@Path("/cms_document/")
public class RestDocumentService extends BaseRestService<DocumentEntity>{
	
	/**
	 * 用户信息管理接口
	 */
	@Autowired
	private DocumentService documentManage;

	@Override
	protected BaseService<DocumentEntity> getService() {
		return documentManage;
	}
	
	@Override
	protected String getServiceName() {
		return "cms_document";
	}
}
